package com.dt76.smallloanbackenduser.remote.ysy;

import com.dt76.smallloanbackenduser.hystrix.ysy.ServiceHystrix;
import com.dt76.smallloanbackenduser.pojo.ysy.YBankAccount;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "smallloan-backEnd-service",fallback = ServiceHystrix.class)
public interface RemoteService {

    @RequestMapping("/ysy/qryAll")
    List<YBankAccount> qryAll();
}
